package meterMonitor.vo;

import java.util.Date;

/**
 * Created by Administrator on 2019/2/25 0025.
 * 一个水表本月用水量
 */
public class MonitorMeter {
    //当天日期
    private Date uploadDate;
    //日期
    private String uploadDateStr;
    //水表位置
    private String anotherName;
    //水表本月使用量
    private Double intervalQuantity;
    //本月该水表工作时间（秒）
    private Double intervalSec;
    //日标准量
    private double standard;
    //当月标准量
    private double monthMeterStandar;
    //所属时间
    private String ownerTimer;
    // 完整时间
    private String ownerTimerStr;
    //节约率
    private double economy;

    private String strEconomy;

    @Override
    public boolean equals(Object object) {
    if (object instanceof MonitorMeter){
        MonitorMeter monitorMeter = (MonitorMeter)object;
        if(monitorMeter.getAnotherName()==null||anotherName==null){
        return false;
        }else {
            return anotherName.equalsIgnoreCase(monitorMeter.getAnotherName());
        }
    }
    return false;
    }

    public Date getUploadDate() {
        return uploadDate;
    }

    public void setUploadDate(Date uploadDate) {
        this.uploadDate = uploadDate;
    }

    public String getAnotherName() {
        return anotherName;
    }

    public void setAnotherName(String anotherName) {
        this.anotherName = anotherName;
    }

    public Double getIntervalQuantity() {
        return intervalQuantity;
    }

    public void setIntervalQuantity(Double intervalQuantity) {
        this.intervalQuantity = intervalQuantity;
    }

    public Double getIntervalSec() {
        return intervalSec;
    }

    public void setIntervalSec(Double intervalSec) {
        this.intervalSec = intervalSec;
    }

    public double getStandard() {
        return standard;
    }

    public void setStandard(double standard) {
        this.standard = standard;
    }

    public double getMonthMeterStandar() {
        return monthMeterStandar;
    }

    public void setMonthMeterStandar(double monthMeterStandar) {
        this.monthMeterStandar = monthMeterStandar;
    }

    public String getUploadDateStr() {
        return uploadDateStr;
    }

    public void setUploadDateStr(String uploadDateStr) {
        this.uploadDateStr = uploadDateStr;
    }

    public String getOwnerTimer() {
        return ownerTimer;
    }

    public void setOwnerTimer(String ownerTimer) {
        this.ownerTimer = ownerTimer;
    }

    public double getEconomy() {
        return economy;
    }

    public void setEconomy(double economy) {
        this.economy = economy;
    }

    public String getStrEconomy() {
        return strEconomy;
    }

    public void setStrEconomy(String strEconomy) {
        this.strEconomy = strEconomy;
    }

    public String getOwnerTimerStr() {
        return ownerTimerStr;
    }

    public void setOwnerTimerStr(String ownerTimerStr) {
        this.ownerTimerStr = ownerTimerStr;
    }
}
